-- GENERATED SPELL FOR [Kor'gresh Coldrage] --


function spell0_2793(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(865,pUnit)
pUnit:RegisterEvent('Sorts_2793', 8000, 1)
end

function spell1_2793(pUnit, Event) --@Trelane\'s Freezing Touch,Self--
pUnit:FullCastSpellOnTarget(4320,pUnit)
pUnit:RegisterEvent('Sorts_2793', 15000, 1)
end

function Sorts_2793(pUnit, Event)
local choix_sorts_2793 = math.random(0, 1)
if choix_sorts_2793 == 0 then
pUnit:RegisterEvent('spell0_2793', 1, 1)
end
if choix_sorts_2793 == 1 then
pUnit:RegisterEvent('spell1_2793', 1, 1)
end
end

function mob2793_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2793', math.random(1500, 3000), 1)
end

function mob2793_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2793_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2793_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2793, 1, 'mob2793_Action')
RegisterUnitEvent(2793, 2, 'mob2793_Leave')
RegisterUnitEvent(2793, 3, 'mob2793_Kill')
RegisterUnitEvent(2793, 4, 'mob2793_Die')
